package example;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BController {


    @GetMapping("/y")
    public Object y() throws Exception{
        return "ok";
    }


    @PostMapping("/x")
    public Object x(@RequestBody Map map) throws Exception{
        return "ok"+map;
    }
}